package com.weiyuwqj.api.model.convert;

/**
 * Created by FW on 2016/7/11.
 */
public class LotteryGoodsNameConvert extends DefaultConvert {
    @Override
    public Object convert(Object val) {
        if (val == null) return "";
        if (!(val instanceof Integer)) {
            return "";
        }
        int type = (Integer) val;
        if (type == 1) {
            return "0.5%加息券";
        } else if (type == 2) {
            return "1%加息券";
        }
        else if (type == 3) {
            return "1.5%加息券";
        }
        else if (type == 4) {
            return "2%加息券";
        }
        else if (type == 5) {
            return "7.7现金红包";
        }
        else if (type == 6) {
            return "17.7现金红包";
        }
        else if (type == 7) {
            return "27.7现金红包";
        }else if (type == 8) {
            return "10小小币";
        }else if (type == 9) {
            return "20小小币";
        }else if (type == 10) {
            return "30小小币";
        }else if (type == 11) {
            return "50小小币";
        }else if (type == 12) {
            return "100小小币";
        }else if (type == 13) {
            return "1%加息券";
        }else if (type == 14) {
            return "30小小币";
        }else if (type == 15) {
            return "10小小币";
        }else if (type == 16) {
            return "5现金红包";
        }else if (type == 17) {
            return "红包50元（一万以上可用）";
        }else if (type == 18) {
            return "挂烫机";
        }else if (type == 19) {
            return "扫地机器人";
        }else if (type == 20) {
            return "空调扇";
        }else if (type == 21) {
            return "上海迪士尼双人1日游门票";
        }else if (type == 22) {
            return "小小大礼包（小木雕+U盘+充电宝+鼠标垫+签字笔）";
        }else if (type == 23) {
            return "电热水壶";
        }else {
            return "其他";
        }
    }
}
